package com.ios.common.pojo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;

/**
 * IosSysStorehouse entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "ios_sys_storehouse", catalog = "ios")
public class IosSysStorehouse implements java.io.Serializable {

	// Fields

	private Long storehouseId;
	private String storehouseName;
	private String storehouseCode;
	private String storehouseSpell;
	private Integer storehouseType;
	private String remark;
	private Long createUserId;
	private String createUserName;
	private String createTime;
	private String version;

	// Constructors

	/** default constructor */
	public IosSysStorehouse() {
	}

	/** minimal constructor */
	public IosSysStorehouse(String storehouseName, String storehouseCode) {
		this.storehouseName = storehouseName;
		this.storehouseCode = storehouseCode;
	}

	/** full constructor */
	public IosSysStorehouse(String storehouseName, String storehouseCode,
			String storehouseSpell, Integer storehouseType, String remark,
			Long createUserId, String createUserName, String createTime,
			String version) {
		this.storehouseName = storehouseName;
		this.storehouseCode = storehouseCode;
		this.storehouseSpell = storehouseSpell;
		this.storehouseType = storehouseType;
		this.remark = remark;
		this.createUserId = createUserId;
		this.createUserName = createUserName;
		this.createTime = createTime;
		this.version = version;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "native")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "storehouse_id", unique = true, nullable = false)
	public Long getStorehouseId() {
		return this.storehouseId;
	}

	public void setStorehouseId(Long storehouseId) {
		this.storehouseId = storehouseId;
	}

	@Column(name = "storehouse_name", nullable = false, length = 100)
	public String getStorehouseName() {
		return this.storehouseName;
	}

	public void setStorehouseName(String storehouseName) {
		this.storehouseName = storehouseName;
	}

	@Column(name = "storehouse_code", nullable = false, length = 50)
	public String getStorehouseCode() {
		return this.storehouseCode;
	}

	public void setStorehouseCode(String storehouseCode) {
		this.storehouseCode = storehouseCode;
	}

	@Column(name = "storehouse_spell", length = 100)
	public String getStorehouseSpell() {
		return this.storehouseSpell;
	}

	public void setStorehouseSpell(String storehouseSpell) {
		this.storehouseSpell = storehouseSpell;
	}

	@Column(name = "storehouse_type")
	public Integer getStorehouseType() {
		return this.storehouseType;
	}

	public void setStorehouseType(Integer storehouseType) {
		this.storehouseType = storehouseType;
	}

	@Column(name = "remark", length = 300)
	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Column(name = "create_user_id")
	public Long getCreateUserId() {
		return this.createUserId;
	}

	public void setCreateUserId(Long createUserId) {
		this.createUserId = createUserId;
	}

	@Column(name = "create_user_name", length = 100)
	public String getCreateUserName() {
		return this.createUserName;
	}

	public void setCreateUserName(String createUserName) {
		this.createUserName = createUserName;
	}

	@Column(name = "create_time", length = 14)
	public String getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	@Column(name = "version", length = 10)
	public String getVersion() {
		return this.version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

}